package com.ruoyi.app.controller;

import com.ruoyi.app.domain.HospitalArea;
import com.ruoyi.app.service.HospitalAreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RequestMapping("hospitalArea")
@RestController
public class HospitalAreaController {
    @Autowired
    private HospitalAreaService hospitalAreaService;

    @RequestMapping("list")
    public List<HospitalArea> list(){
        return hospitalAreaService.getlist();
    }
}
